<?php

class TeamController extends Controller
{

    public function teamList()
    {
        $id = $_GET['id'];
        // $t =new TeamModel();
        $t = Factory::M('team');
        $team         = $t->findTeam($id);
        $playersCount = $t->playerCount($id);
        $players      = $t->getPlayers($id);
        // var_dump($players);
         
         $this-> assign('team',$team);
         $this->assign('playersCount',$playersCount);
         $this->assign('players',$players);
         $this->display('index');  
       
        // require './app/home/view/team_v.html';

    }
}
